﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LearningCompany.Code;


namespace LearningCompany.WebControls.Menu
{
    public partial class Menu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LitDeconnexion.Visible = HttpContext.Current.User.Identity.IsAuthenticated;
        }

        public void SelectionnerElementMenu(ElementsMenu aElementMenu)
        {
            switch (aElementMenu)
            {
                case ElementsMenu.GestionClients:
                    {
                        ElemGestionClients.Selectionner();
                        break;
                    }
                case ElementsMenu.GestionFormateurs:
                    {
                        ElemGestionFormateurs.Selectionner();
                        break;
                    }
                case ElementsMenu.GestionFormations:
                    {
                        ElemGestionFormations.Selectionner();
                        break;
                    }
                case ElementsMenu.RechercheStagiaires:
                    {
                        ElemRechercheStagiaires.Selectionner();
                        break;
                    }
            }



        }
    }
}